import React from 'react'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import Detail from './detail/index.js'
import Login from './login/index.js'
import '@scss/base.scss'
import './index.scss'

class Instagram extends React.Component {
  render() {
    return (
      <Router>
        <Switch>
          <Route exact path="/" component={Detail} />
          <Route exact path="/login" component={Login} />
        </Switch>
      </Router>
    )
  }
}

export default Instagram
